package com.tricode.ile.training.task.sl275.lab6;

import java.util.ArrayList;

public class Bank {

    private ArrayList<Customer> customers = new ArrayList<Customer>();

    public void addCustomer(String name, String lastName) {
        this.customers.add(new Customer(name, lastName));
    }

    public Customer getCustomer(int i) {
        return customers.get(i);
    }

    public ArrayList<Customer> getCustomers() {
        return customers;
    }
}
